/*
* jiyan1
*/
package com.jiyan.errorcode.entity;

/**
* 错误码本地化，将对应国际化进行配置 的实体类的状态
*
* @author jiyan
*/
public enum ErrorcodeLocalState implements java.io.Serializable {
   //枚举定义在此
    ;

    ErrorcodeLocalState() {

    }

    /**
    * 根据状态名称查询状态
    *
    * @param stateName
    * @return
    */
    public static ErrorcodeLocalState getEnum(String stateName) {
        for (ErrorcodeLocalState errorcodeLocalState : ErrorcodeLocalState.values()) {
            if (errorcodeLocalState.name().equalsIgnoreCase(stateName)) {
                return errorcodeLocalState;
            }
        }
        return null;
    }

    @Override
    public String toString() {
         return this.name();
    }

}
